Repository navigation
os/arch/arm/src/armino:Add hash verification for the public key - #7588
Open
xiaotao-yuan wants to merge 2 commits into
Open
xiaotao-yuan wants to merge 2 commits into
xiaotao-yuan wants to merge 2 commits into
Conversation
xiaotao-yuan
force-pushed
the
secu_verify
branch
3 times, most recently
from
October 29, 2026 03:33
12e594d to
ff9b48f
Compare
xiaotao-yuan
force-pushed
the
secu_verify
branch
from
November 11, 2026 06:50
ff9b48f to
a8a5260
Compare
Contributor
|
Please resolve conflicts, |
xiaotao-yuan
force-pushed
the
secu_verify
branch
2 times, most recently
from
November 17, 2026 12:58
4a60fd7 to
aa343b2
Compare
Signed-off-by: xiaotao.yuan <xiaotao.yuan@aclsemi.com>
Add an API that provides public key hash verification for non secure worlds Signed-off-by: xiaotao.yuan <xiaotao.yuan@aclsemi.com>
xiaotao-yuan
force-pushed
the
secu_verify
branch
from
November 17, 2026 13:03
0fea307 to
4a00d00
Compare
Contributor
Author
I have updated the PR, please continue to review, thank you。 |
xiaotao-yuan
force-pushed
the
secu_verify
branch
from
December 2, 2026 09:42
4a00d00 to
59ffb2d
Compare
Contributor
🤖 AI Code Review ·
|
| Severity | Category | Issue | Location |
|---|---|---|---|
| 🟠 Medium | Correctness | Missing definitions for bk_otp_verify_pubkey_hash_nsc return values |
tfm_otp_nsc.h:84 |
✅ Checked with no findings: Memory Leaks, Crashes, Hangs
🔍 Details & Suggested Fixes
1. [Correctness] Missing definitions for bk_otp_verify_pubkey_hash_nsc return values
- Location:
os/board/bk7239n/src/components/tfm/tfm_loadable_build/tfm_install/interface/include/tfm_otp_nsc.h#L84 - Evidence: The newly added
bk_otp_verify_pubkey_hash_nscdocuments return constants such asTFM_OTP_PUBKEY_HASH_MATCHandTFM_OTP_PUBKEY_HASH_MISMATCH, but these macros or enums are not defined anywhere in the repository. Non-secure callers that include this header and check the return value against these names will fail to compile. - Suggested fix: Define the return constants (e.g., via an enum or
#define) intfm_otp_nsc.hor a commonly included header before the function declaration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the kernel verifies the signatures of other images, it uses the public key stored in the image and lacks a validity check for that public key; Therefore, the submission compared the hash of the public key with the hash stored in the OTP, adding a check for the legality of the public key,and also update tfm binary files.
Tested on BK7239N xip_all : secure boot and OTA functionality were tested and work properly.